import request from '@/utils/request';

// 查询集团列表
export function operQuery(params) {
  return request({
    url: process.env.VUE_APP_SALEAREA_API + '/org/group/query',
    method: 'get',
    params
  });
}

// 根据id查询集团详情
export function operQueryOne(params) {
  return request({
    url: process.env.VUE_APP_SALEAREA_API + '/org/group/id/' + params,
    method: 'get',
    params
  });
}

// 查询门诊列表
export function clinicQuery(params) {
  return request({
    url: process.env.VUE_APP_SALEAREA_API + '/org/clinic/query',
    method: 'get',
    params
  });
}

// 查询医生列表
export function docQuery(params) {
  return request({
    url: process.env.VUE_APP_AID_API + '/doctor/query',
    method: 'get',
    params
  });
}

// 查询合同列表
export function contractQuery(params) {
  return request({
    url: process.env.VUE_APP_PRODUCT_API + '/oper/contract/query',
    method: 'get',
    params
  });
}

export default { operQuery, operQueryOne, clinicQuery, docQuery, contractQuery };
